#!/usr/bin/python
# -*- coding: utf-8 -*-
# @Time    : 2021/6/26 12:04
# @Author  : Aaron
# @File    : record
# @Software: PyCharm
import os
from calculator_pytest.setting import PICTURE_PATH
import allure


def record_picture(title, image_name):
    with open(os.path.join(PICTURE_PATH, image_name), 'rb') as f:
        allure.attach(f.read(), title, allure.attachment_type.PNG)
